<%-- 
    Document   : checkout_form
    Created on : 17-ene-2012, 14:07:23
    Author     : tpgalan
--%>

<%@page import="com.sdd.plains.CartPlain"%>
<%@page import="com.sdd.plains.CustomerPlain"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
CustomerPlain customerPlain = (CustomerPlain) request.getSession().getAttribute("customer");
            if(customerPlain !=null) {
                CartPlain cartPlain = (CartPlain) request.getSession().getAttribute("cart");
                if(cartPlain != null){
%>
<form>
    <fieldset>
        <legend>Shipment Data</legend>
        <table>
        <tr><td>Street:</td><td> <input id="1" type="text" name="street"></input></td></tr>
        <tr><td>Number:</td><td> <input id="2" type="text" name="number"></input></td></tr>
        <tr><td>Zipcode: </td><td><input id="3" type="text" name="zipcode"></input></td></tr>
        <tr><td>City:</td><td> <input id="4" type="text" name="city"></input></td></tr>
        <tr><td>Country:</td><td> <input id="5" type="text" name="country"></input></td></tr>
        <tr><td>Credit card number:</td><td> <input id="6" type="text" name="ccnumber"></input></td></tr>
        <tr><td>CCV:</td><td><input id="7" type="text" name="secnumber"></input></td></tr>
        
        <tr><td><input type="button" value="Send" onclick="sendAddress()"></input></tr>
        </table>
    </fieldset>
</form>
<%}else {
                    
%>
                There is no Cart
                <%}}else{%>
                You are not logged
<%}%>                
